﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseData.Domain
{
    /// <summary>
    /// 权限表
    /// </summary>
    public class Permissions:BaseEneity
    {
        [Key]
        public int PermissionId {  get; set; }

        public string? PermissionName { get; set; }
        /// <summary>
        /// 路由地址
        /// </summary>
        [StringLength(100)]
        public string? RoutePath { get; set; } = string.Empty;
        /// <summary>
        /// 路由名称
        /// </summary>
        [StringLength(30)]
        public string? RouteName { get; set; } = string.Empty;
        /// <summary>
        /// 父级编号
        /// </summary>
        public int ParentId { get; set; }
    }
}
